const useTheme = () => {
  const Html = document.getElementsByTagName('html')[0]
  const theme = Html.getAttribute('class')?.split(' ') || []
  if (theme.includes('dark')){
    console.log('remove')
    Html.classList.remove('dark')
  }else{
    Html.classList.add('dark')
  }
}

export default useTheme
